import request from '@/utils/request'


export function assetLedgerList(data) { //资产台账-列表
    return request({
        url: '/project-management/api/assetsAccount/page',
        method: 'post',
        data
    })
}
export function assetLedgerListAll(data) { //资产台账-列表all
    return request({
        url: '/project-management/api/assetLedger/assetLedger',
        method: 'post',
        data
    })
}
export function assetLedgerAdd(data) { //资产台账-添加
    return request({
        url: '/project-management/api/assetsAccount/add',
        method: 'POST',
        data
    })
}
//原 put
export function assetLedgerEdit(data) { //资产台账-修改
    return request({
        url: '/project-management/api/assetsAccount/edit',
        method: 'post',
        data
    })
}
export function assetLedgerDetail(id) { //资产台账-单条查询
    return request({
        url: '/project-management/api/assetsAccount/'+id,
        method: 'get',
    })
}
//原 del
export function assetLedgerDelete(id) { //资产台账-单条查询删除
    return request({
        url: '/project-management/api/assetsAccount/del/'+id,
        method: 'get',
    })
}

export function  assetLedgerExport(data) { //资产台账-导出
    return request({
        url: '/project-management/api/assetsAccount/export',
        responseType: 'arraybuffer',
        method: 'POST',
        data,
    })
  }


